home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19971216-19980424 / 000110_news@newsmaster….columbia.edu _Wed Jan 21 16:24:58 1998.msg < prev    next >
Internet Message Format  |  1998-04-22  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA22805
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 21 Jan 1998 16:24:58 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA13938
  7.     for kermit.misc@watsun; Wed, 21 Jan 1998 16:24:57 -0500 (EST)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!news2.chicago.iagnet.net!news1.chicago.iagnet.net!iagnet.net!ftpbox.mot.com!mothost.mot.com!news-in.cig.mot.com!news.ecid.cig.mot.com!merlin!cornellr
  9. From: cornellr@merlin.ecid.cig.mot.com (Robert Cornell)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: stderr under cgi
  12. Date: 21 Jan 1998 21:02:13 GMT
  13. Organization: Motorola Ltd., European Cellular Infrastructure Division
  14. Lines: 34
  15. Distribution: world
  16. Message-ID: <1998Jan21.201529@merlin.ecid.cig.mot.com>
  17. NNTP-Posting-Host: lanner.ecid.cig.mot.com
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8286
  19.  
  20. Thanks for you comments Frank. My first post was a little unclear, let me clarify.
  21.  
  22. #!/opt/rat/bin/perl
  23. $|=1;
  24. print "Content-type: text/plain", "\n\n";
  25. system ("/opt/rat/bin/kermit -C \"set xfer displ none,echo \\v(term),quit\"");
  26. exit(0);
  27.  
  28. Displays:
  29. Warning: terminal type unknown: ""
  30. Fullscreen file transfer display disabled.
  31. unknown
  32.  
  33. Which is strange as:
  34. #!/opt/rat/bin/kermit
  35. echo "Content-type: text/plain"
  36. echo
  37. echo {\v(term)}
  38. quit
  39.  
  40. Happily Displays:
  41. unknown
  42.  
  43. Without a warning, but if you add a switch statement and a couple of function
  44. calls (i.e. Nothing related to the screen/term/output) you can generate a warning!
  45. I have tried to redirect stderr to no effect.  Your (and others) comments would
  46. suggest that warnings are placed on stdin, could you confirm/deny.
  47.  
  48. FYI 193 Alpha 10 dosen't display this behaivior!
  49.  
  50.  
  51. Robert
  52. -- 
  53. ∩┐╜ Robert Cornell - cornellr@ecid.cig.mot.com